import request from '@/utils/request'
// api地址
const api = {
  list: 'bike.fitting/index',
  detail: 'bike.fitting/detail',
  add: 'bike.fitting/add',
  edit: 'bike.fitting/edit',
  remove: 'bike.fitting/remove'
}

export const list = (param) => {
  return request.get(api.list, param)
}

export const detail = (bookingId) => {
  return request.get(api.detail, { bookingId })
}

export const add = (data) => {
  return request.post(api.add, { form: data })
}

export const edit = (bookingId, data) => {
  return request.post(api.edit, { bookingId, form: data })
}

export const remove = (bookingId) => {
  return request.post(api.remove, { bookingId })
}

